<?php
/**
 * Processor for lab queue model
 * @package modules.dept_laboratory.includes
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class LabQueueItemModel {
	private $labQueueId;
	private $labAssignmentTicketId;
	private $patientId;
	private $patientName;
	private $startWaiting;
	private $startProcess;
	private $treatmentDepartmentId;
	private $treatmentDepartmentName;
	private $enumStatus;
	private $labTicketItems = array();
	function __construct($rawData) {
		$this->labQueueId = $rawData['lab_queue_id'];
		$this->labAssignmentTicketId = $rawData['lab_assignment_ticket_id'];
		$this->patientId = $rawData['patient_id'];
		$this->patientName = $rawData['patient_name'];
		$this->startWaiting = $rawData['start_waiting'];
		$this->startProcess = $rawData['start_process'];
		$this->treatmentDepartmentId = $rawData['treatment_department_id'];
		$this->treatmentDepartmentName = $rawData['treatment_department_name'];
		$this->enumStatus = $rawData['enum_status'];
		$this->labTicketItems[] = new LabQueueAssignmentItemModel($rawData['lab_ticket_id'],
		$rawData['lab_group_name'],
		$rawData['is_done']);
	}

	public function addLabTicketItem($labTicketId, $name, $isDone) {
		$this->labTicketItems[] = new LabQueueAssignmentItemModel($labTicketId, $name, $isDone);
	}

	public function getLabQueueId() {
		return $this->labQueueId;
	}
	public function getLabAssignmentTicketId() {
		return $this->labAssignmentTicketId;
	}
	public function getPatientId() {
		return $this->patientId;
	}
	public function getPatientName() {
		return $this->patientName;
	}
	public function getTreatmentDepartmentId() {
		return $this->treatmentDepartmentId;
	}
	public function getTreatmentDepartmentName() {
		return $this->treatmentDepartmentName;
	}
	public function getEnumStatus() {
		return $this->enumStatus;
	}
	public function getLabTicketItems() {
		return $this->labTicketItems;
	}
    public function getStartWaiting() {
        return $this->startWaiting;
    }
    public function getStartProcess() {
        return $this->startProcess;
    }

}
?>